﻿@model SoftHotel.Models.NotaCreditoModel

@{
    ViewBag.Title = "Mostrar Datos";
}

@using (Html.BeginForm())
{ 
    <h1><strong>Nota de Crédito</strong></h1>
        
    <br />
    <table id="buscar" rules="all" style="background-color: #BDBDBD; width: 900px; margin-bottom: 0px;" border="1">
	    <tr>
            <td>
                <input type="submit" name="button" value="Generar Nota de Crédito" />                		        
                <input type="submit" name="button" value="Regresar" />
            </td>
	    </tr>
    </table>	

    <br />    
    
<table id="MainContent_Table1" rules="all" style="border-color: Black; width: 900px;" border="1">
    <tbody>
    <tr>
        <td style="font-weight: bold; width: 110px;">Seleccione Hotel: </td>
        <td style="width: 450px;">@Html.DisplayFor(Model => Model.nomsede)</td>
        <td style="font-weight: bold; width: 140px;">Fecha de Emision: </td>
        <td style="width: 200px;">@Html.DisplayFor(Model => Model.fechaEmision)</td>
    </tr>
    <tr>
        <td style="font-weight: bold; width: 110px;"> Direccion: </td>
        <td style="width: 450px;">@Html.DisplayFor(Model => Model.direcsede)</td>
        <td style="font-weight: bold; width: 140px;">Divisa:</td>
        <td>@Html.DropDownListFor(Model => Model.divisa, new[]{
                    new SelectListItem() {Text = "Soles (S/.)", Value = "Soles"},                    
                    new SelectListItem() {Text = "Dolares ($)", Value = "Dolares"}
                    }, "Seleccione")
        </td>
    </tr>
    <tr>
        <td style="font-weight: bold;width: 110px;"> Ubicacion: </td>
        <td style="width: 450px;">@Html.DisplayFor(Model => Model.ubicasede)</td>
        <td style="font-weight: bold; width: 140px;"><span style="width: 450px;"><strong>Monto Total:</strong></span></td>	
	    <td style="width: 200px;">@Html.DisplayFor(Model => Model.monto)</td>	
    </tr>
    <tr>
        <td style="font-weight: bold;width: 110px;"> Telefono:</td>
        <td style="width: 450px;">@Html.DisplayFor(Model => Model.telsede)</td>
    </tr>
    
    </tbody>
</table>

    
    <br />
    <br />
    
	<table id="MainContent_Table1" rules="all" style="border-color: Black; width: 900px; margin-bottom: 0px;" border="1">
		<tbody>
		<tr style="">
			<td style="font-weight: bold; width: 110px;">Nombre</td>
			<td style="width: 450px;">@Html.DisplayFor(Model => Model.cNombre)</td>
			<td style="font-weight: bold; width: 140px;"><span style="font-weight: bold; width: 110px;">Tipo Documento</span>:</td>
			<td style="width: 200px;">@Html.DisplayFor(Model => Model.tipoDoc)</td>
		</tr>
		<tr>
			<td style="font-weight: bold; width: 110px;"> Apellido</td>
			<td style="width: 450px;">@Html.DisplayFor(Model => Model.cApellido)</td>
			<td style="font-weight: bold; width: 140px;">N° Documento:</td>
			<td style="width: 200px;">@Html.DisplayFor(Model => Model.ndocumento)</td>
		</tr>
		</tbody>
	</table>

    
<h2>Detalle Documento de Venta </h2>
	<table id="MainContent_Table2" rules="all" style="border-color: Black; width: 900px; margin-bottom: 0px;" border="1">
		<tbody>
			<tr>
				<td style="font-weight: bold; width: 210px;" align="center">Descripcion</td>
				<td style="font-weight: bold; width: 120px;" align="center">Tipo de Servicio</td>
				<td style="font-weight: bold; width: 110px;" align="center">Costo Unitario</td>
				<td style="font-weight: bold; width: 100px;" align="center">Cantidad</td>
				<td style="font-weight: bold; width: 100px;" align="center">Total (S/.)</td>
				<td style="font-weight: bold; width: 100px;" align="center">Total (USD) </td>
				<td style="font-weight: bold; width: 60px;" align="center"><input type="checkbox" /></td>
			</tr>
    @{
        //foreach (var prod in Model.nota.notacreditos)
    {

			<tr>
				<td align="center">Evento de Graduaci&oacute;n </td>
				<td align="center"> Evento</td>
				<td align="center">100.00</td>
				<td align="center">1</td>
				<td align="center">100.00</td>
				<td align="center">37.00</td>
				<td align="center"><a href = "/NotaCredito/Mostrar?descripcion=M,100"><img border="0" src="@Href("~/Content/Images/edit.jpg")"></a></td>
			</tr>
            <tr>
				<td align="center">Evento de Bodas </td>
				<td align="center"> Evento</td>
				<td align="center">200.00</td>
				<td align="center">2</td>
				<td align="center">200.00</td>
				<td align="center">74.00</td>
				<td align="center"><a href = "/NotaCredito/Mostrar?descripcion=M,200"><img border="0" src="@Href("~/Content/Images/edit.jpg")"></a></td>
			</tr>
            <tr>
				<td align="center">Cena Familiar </td>
				<td align="center"> Evento</td>
				<td align="center">180.00</td>
				<td align="center">2</td>
				<td align="center">180.00</td>
				<td align="center">70.00</td>
				<td align="center"><a href = "/NotaCredito/Mostrar?descripcion=M,180"><img border="0" src="@Href("~/Content/Images/edit.jpg")"></a></td>
			</tr>
    }
        }      		
		</tbody>
	</table>    
}    
<br />
<br />
